//
//  DateUtil.h
//  LOU
//
//  Created by iMacOne on 15/11/11.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define DATE_TIME_FORMAT @"yyyy-MM-dd HH:mm:ss"
#define DATE_TIME_FORMAT_JIE @"yyyy-MM-dd HH:mm"
#define DATE_FORMAT @"yyyy-MM-dd"
#define TIME_FORMAT @"HH:mm:ss"
#define DATE_NO_FORMAT @"yyyyMMddHHmmss"
#define DAY_SECONDS 86400

@interface DateUtil : NSObject

#pragma mark 日期时间格式的Format
+ (NSDateFormatter*)formatDateTime;

#pragma mark 一串数字格式的String
+ (NSString*)formatDateNoStr:(NSDate*)date;

#pragma mark 一串数字格式的Format
+ (NSDateFormatter*)formatDateNo;

#pragma mark 日期时间格式的String
+ (NSString*)formatDateTimeStr:(NSDate*)date;

+(NSString *)toFormatDateString:(NSDate *)string;

@end
